import { httpGet, httpPost, httpDelete, httpPut } from '@/http'
import { services } from '@/config'

export const getPage = data => httpPost(`${services.personnelService}fyprojectinfo/page`, data)

export const save = data => httpPost(`${services.personnelService}fyprojectinfo`, data)

export const load = id => httpGet(`${services.personnelService}fyprojectinfo/${id}`)
export const getYears = () => httpGet(`${services.personnelService}fyprojectinfo/getYears`)

export const create = () => httpGet(`${services.personnelService}fyprojectinfo/create`)

export const update = data => httpPut(`${services.personnelService}fyprojectinfo`, data)

export const batchDelete = ids => httpDelete(`${services.personnelService}fyprojectinfo/batchDelete`, ids, null, false)
